package com.qjdchina.sku.dao.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.qjdchina.commons.model.PageModel;
import com.qjdchina.sku.model.ProductSet;

public interface ProductSetMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(ProductSet record);

	int insertSelective(ProductSet record);

	ProductSet selectByPrimaryKey(Integer id);

	List<ProductSet> selectByIds(@Param("ids") List<Integer> ids);

	ProductSet selectByProductSetName(String name);

	int updateByPrimaryKeySelective(ProductSet record);

	@SuppressWarnings("rawtypes")
	public List<ProductSet> queryPagedProductSetList(@Param("params") Map params, @Param("page") PageModel<?> page);

	@SuppressWarnings("rawtypes")
	int getPagedProductSetTotal(@Param("params") Map params);
	
	
	ProductSet getProductSetByCode(String code);
}